package org.jili.novoland;

import org.jili.novoland.game.ResourceManager;
import org.jili.novoland.listener.DragListener;
import org.jili.novoland.scene.BattleFieldScene;

import android.app.Activity;
import android.os.Bundle;

public class NovolandActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        ResourceManager resourceManager = ResourceManager.getInstance(this);
        resourceManager.load();
        BattleFieldScene battleFieldScene = new BattleFieldScene(resourceManager);
        battleFieldScene.setOnTouchListener(new DragListener(resourceManager));
        setContentView(battleFieldScene);
    }
}